#ifndef GX_TYPE_PLAYLIST

#include <gnttree.h>
#include "utils.h"

#define GX_TYPE_PLAYLIST     (gx_get_gtype())
#define GX_PLAY_LIST(obj)    (G_TYPE_CHECK_INSTANCE_CAST((obj), GX_TYPE_PLAYLIST, GxPlayList))

typedef struct _GxPlayList
{
	GntTree parent;
	char *name;
	struct {
		guint pos;
		SongInfo *info;
	} current;
	GList *songs;
} GxPlayList;

typedef struct _GxPlayListClass
{
	GntTreeClass parent;
} GxPlayListClass;

GType gx_get_gtype(void);

GntWidget *gx_playlist_new(const char *name);

void gx_playlist_update(GxPlayList *list);

#endif
